import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);
export default new Router({
  routes:[
    //团队定义
    {
      path: '/teamDefine',
      component: resolve => require(['../components/teamDefine/teamDefineComponent.vue'], resolve),
      meta: { keepAlive: true }
    },
    //团队定义-编辑【团队id】
    {
      path: '/buildTeam/:id/:partnerId',
      component: resolve => require(['../components/teamDefine/buildTeamComponent.vue'], resolve),
    },
    //业务员等级
    {
      path: '/salemanLevel',
      component: resolve => require(['../components/salemanLevel/salemanLevelComponent.vue'], resolve),
    },
    //业务员等级-编辑
    {
      path: '/buildLevel/:id/:name',
      component: resolve => require(['../components/salemanLevel/buildLevelComponent.vue'], resolve),
    },
    //业务员管理
    {
      path: '/salemenManage',
      component: resolve => require(['../components/salesmanManage/salesmanageComponent.vue'], resolve),
      meta: { keepAlive: true }
    },
    //业务员管理-编辑【业务员id】
    {
      path: '/salemenManage/:id',
      component: resolve => require(['../components/salesmanManage/editSalerComponent.vue'], resolve),
    },
    //获取微信推广url
    {
      path: '/recomUrlManage',
      component: resolve => require(['../components/recomUrlManage/recomUrlManage.vue'], resolve),
    },
    //获取产品推广url
    {
      path: '/productRecomUrlManage',
      component: resolve => require(['../components/recomUrlManage/productRecomUrlManage.vue'], resolve),
    },
  ]
})

